package com.chenxiao.rediscollection.sign.controller;

import com.chenxiao.rediscollection.sign.entity.AjaxResult;
import com.chenxiao.rediscollection.sign.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @Author: CX
 * @Date: Created in  2023/12/15 17:18
 * @version: v1.0
 * @Description: TODO
 **/
@RestController
public class UserController {
    @Resource
    private UserService userService;
    @PostMapping("sign")
    public AjaxResult sign() {
        return userService.sign();
    }
    @GetMapping("/signCount")
    public AjaxResult signCount() {
        return userService.signCount();
    }
}
